#include <iostream>
#include <cstring>
using namespace std;
//[x]未知问题，未解决
//[]尝试使用string解决问题
//[]牛哇
class Number
{
private:
    char s[50];
    char a[50], b[50];
    char f;
    int lena, lenb;

public:
    Number(char str[])
    {
        int i;
        int len = strlen(str);
        lena = 0;
        lenb = 0;
        
        for (i = 0; i < len; i++)
        {
            if (str[i] >= '0' && str[i] <= '9')
            {
                a[i] = str[i];
                lena++;
            }
            else if (str[i] == '.' || str[i] == '/' || str[i] == '%')
            {
                f = str[i];

                break;
            }
        }
        if (f != ' ' && f != '%')
        {

            for (i += 1;; i++)
            {
                if (str[i] >= '0' && str[i] <= '9')
                {
                    b[i - lena - 1] = str[i];
                    lenb++;
                }
                else
                {
                    break;
                }
            }
        }
    }
    void print();
    void change();
    void set();
};

void Number::print()
{
    //消0，打印a
    int cnt = 0, cnta = 0;
    for (int i = lena - 1; i >= 0; i--)
    {
        if (a[i] != '0')
        {
            cnt++;
        }
        if (cnt != 0)
        {
            cout << a[i];
            cnta++;
        }
    }
    //单独输入0时，输出0
    if (cnta == 0)
    {
        cout << '0';
    }
    //输出标点符号
    if (f != ' ')
    {
        cout << f;
    }
    //消0，打印b
    cnt = 0;
    int zero = 0, cntb = 0;
    if (lenb != 0)
    {
        for (int i = 0; i < lenb; i++)
        {
            if (b[i] == '0')
            {
                zero++;
            }
            else
            {
                break;
            }
        }
        
        if (f == '.')
        {
            cnt++;
        }
        
        for (int i = lenb - 1; i >= zero; i--)
        {
            if (b[i] != '0')
            {
                cnt++;
            }
            if (cnt != 0)
            {
                cout << b[i];
                cntb++;
            }
        }
        //单独输入0.0时，输出0.0
        if (cntb == 0)
        {
            cout << '0';
        }
    }
}

int main()
{
    char s[50];
    cin >> s;
    Number p(s);
    p.print();
    return 0;
}

/*

*/